package com.wigem.dic.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wigem.framework.common.util.common.GuidUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 行业字典对象 dic_industry
 *
 * @author YMY
 * @date 2021-10-25
 */
@Data
@ApiModel
@TableName("dic_industry")
public class DicIndustryEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId
    @ApiModelProperty(value = "id")
    private String id;

    /**
     * 行业门类代码
     */
    @ApiModelProperty(value = "行业门类代码")
    @TableField(value = "industry_mtype_id")
    private String industryMtypeId;

    /**
     * 行业门类名称
     */
    @ApiModelProperty(value = "行业门类名称")
    @TableField(value = "industry_mtype_name")
    private String industryMtypeName;

    /**
     * 行业大类代码
     */
    @ApiModelProperty(value = "行业大类代码")
    @TableField(value = "industry_btype_id")
    private String industryBtypeId;

    /**
     * 行业大类名称
     */
    @ApiModelProperty(value = "行业大类名称")
    @TableField(value = "industry_btype_name")
    private String industryBtypeName;

    /**
     * 行业中类代码
     */
    @ApiModelProperty(value = "行业中类代码")
    @TableField(value = "industry_stype_id")
    private String industryStypeId;

    /**
     * 行业中类名称
     */
    @ApiModelProperty(value = "行业中类名称")
    @TableField(value = "industry_stype_name")
    private String industryStypeName;

    /**
     * 行业小类代码
     */
    @ApiModelProperty(value = "行业小类代码")
    @TableField(value = "industry_dtype_id")
    private String industryDtypeId;

    /**
     * 行业小类名称
     */
    @ApiModelProperty(value = "行业小类名称")
    @TableField(value = "industry_dtype_name")
    private String industryDtypeName;

    /**
     * 是否有效
     */
    @ApiModelProperty(value = "是否有效")
    @TableField(value = "enable_mark")
    private String enableMark;

    /**
     * 序号
     */
    @ApiModelProperty(value = "id")
    @TableField(value = "sort_code")
    private Long sortCode;

    /**
     * 说明
     */
    @ApiModelProperty(value = "id")
    @TableField(value = "remarks")
    private String remarks;

    /**
     * 2011年行业代码
     */
    @ApiModelProperty(value = "id")
    @TableField(value = "industry_dtype_id_2011")
    private String industryDtypeId2011;


    public void create() {
        this.id = GuidUtils.generate();
    }

    public void modify(String keyValue) {

        this.id = keyValue;

    }

}
